package designPattern.builder;

import designPattern.builder.Bobject.Media;
import designPattern.builder.Bobject.WebSite;
import designPattern.builder.Sobject.MediaItem;

public class WebSiteBuilder extends MediaBuilder {
	private WebSite w;
	public void buildBase(){
		System.out.println("building magazine framework");
		w=new WebSite();
	}
	public void addMediaItem(MediaItem webItem){
		System.out.println("Adding article"+webItem);
		w.add(webItem);
	}
	public Media getFinishedMedia(){
		return w;
	}
}
